/*
voice.h
offer voice.h headfile ,api to outside
designed by linxiantao

-------------------------------
2020-05-06 10:39:00
create file
-------------------------------
*/

#ifndef __VOICE_H
#define __VOICE_H

#ifdef __cplusplus
extern "C" {
#endif
#include "../bsp/base_type.h"

int32_t xp_voice_stop();
int32_t xp_voice_clr_source();
int32_t xp_voice_start(char *file_name, int32_t volume);
int32_t xp_voice_init();
extern int xp_voice_debug(char *type,char *fun,char *param);
extern int xp_voice_set_volume(int volume);

/****************************extern function*******************/
extern int xp_voice_pause(void);   //puase play
extern int xp_voice_resume(void);   //resume play

#ifdef __cplusplus
}
#endif


#endif

